
/**
 * This is a generated class and is not intended for modification.  
 */
package com.model.valueObjects
{
import com.adobe.fiber.styles.IStyle;
import com.adobe.fiber.styles.Style;
import com.adobe.fiber.styles.StyleValidator;
import com.adobe.fiber.valueobjects.AbstractEntityMetadata;
import com.adobe.fiber.valueobjects.AvailablePropertyIterator;
import com.adobe.fiber.valueobjects.IPropertyIterator;
import mx.events.ValidationResultEvent;
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.valueobjects.IModelType;
import mx.events.PropertyChangeEvent;

use namespace model_internal;

[ExcludeClass]
internal class _VoClientMasterEntityMetadata extends com.adobe.fiber.valueobjects.AbstractEntityMetadata
{
    private static var emptyArray:Array = new Array();

    model_internal static var allProperties:Array = new Array("client_remarks", "client_contact_person", "serialnumber", "country_name", "country_serialnumber_fk", "client_off_addr", "change_client_id", "client_contact_phone", "client_regno2", "client_regno1", "activestatus", "client_id", "client_name", "off_phone", "cre_datetime", "del_phone", "client_pricecategory", "client_url", "cre_userid", "client_fax", "cust_type", "client_del_addr", "client_contact_email", "state_serialnumber_fk", "client_email");
    model_internal static var allAssociationProperties:Array = new Array();
    model_internal static var allRequiredProperties:Array = new Array("client_remarks", "client_contact_person", "serialnumber", "country_name", "country_serialnumber_fk", "client_off_addr", "change_client_id", "client_contact_phone", "client_regno2", "client_regno1", "activestatus", "client_id", "client_name", "off_phone", "cre_datetime", "del_phone", "client_pricecategory", "client_url", "cre_userid", "client_fax", "cust_type", "client_del_addr", "client_contact_email", "state_serialnumber_fk", "client_email");
    model_internal static var allAlwaysAvailableProperties:Array = new Array("client_remarks", "client_contact_person", "serialnumber", "country_name", "country_serialnumber_fk", "client_off_addr", "change_client_id", "client_contact_phone", "client_regno2", "client_regno1", "activestatus", "client_id", "client_name", "off_phone", "cre_datetime", "del_phone", "client_pricecategory", "client_url", "cre_userid", "client_fax", "cust_type", "client_del_addr", "client_contact_email", "state_serialnumber_fk", "client_email");
    model_internal static var guardedProperties:Array = new Array();
    model_internal static var dataProperties:Array = new Array("client_remarks", "client_contact_person", "serialnumber", "country_name", "country_serialnumber_fk", "client_off_addr", "change_client_id", "client_contact_phone", "client_regno2", "client_regno1", "activestatus", "client_id", "client_name", "off_phone", "cre_datetime", "del_phone", "client_pricecategory", "client_url", "cre_userid", "client_fax", "cust_type", "client_del_addr", "client_contact_email", "state_serialnumber_fk", "client_email");
    model_internal static var derivedProperties:Array = new Array();
    model_internal static var collectionProperties:Array = new Array();
    model_internal static var collectionBaseMap:Object;
    model_internal static var entityName:String = "VoClientMaster";
    model_internal static var dependentsOnMap:Object;
    model_internal static var dependedOnServices:Array = new Array();

    
    model_internal var _client_remarksIsValid:Boolean;
    model_internal var _client_remarksValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_remarksIsValidCacheInitialized:Boolean = false;
    model_internal var _client_remarksValidationFailureMessages:Array;
    
    model_internal var _client_contact_personIsValid:Boolean;
    model_internal var _client_contact_personValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_contact_personIsValidCacheInitialized:Boolean = false;
    model_internal var _client_contact_personValidationFailureMessages:Array;
    
    model_internal var _country_nameIsValid:Boolean;
    model_internal var _country_nameValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _country_nameIsValidCacheInitialized:Boolean = false;
    model_internal var _country_nameValidationFailureMessages:Array;
    
    model_internal var _client_off_addrIsValid:Boolean;
    model_internal var _client_off_addrValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_off_addrIsValidCacheInitialized:Boolean = false;
    model_internal var _client_off_addrValidationFailureMessages:Array;
    
    model_internal var _client_contact_phoneIsValid:Boolean;
    model_internal var _client_contact_phoneValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_contact_phoneIsValidCacheInitialized:Boolean = false;
    model_internal var _client_contact_phoneValidationFailureMessages:Array;
    
    model_internal var _client_regno2IsValid:Boolean;
    model_internal var _client_regno2Validator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_regno2IsValidCacheInitialized:Boolean = false;
    model_internal var _client_regno2ValidationFailureMessages:Array;
    
    model_internal var _client_regno1IsValid:Boolean;
    model_internal var _client_regno1Validator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_regno1IsValidCacheInitialized:Boolean = false;
    model_internal var _client_regno1ValidationFailureMessages:Array;
    
    model_internal var _client_idIsValid:Boolean;
    model_internal var _client_idValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_idIsValidCacheInitialized:Boolean = false;
    model_internal var _client_idValidationFailureMessages:Array;
    
    model_internal var _client_nameIsValid:Boolean;
    model_internal var _client_nameValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_nameIsValidCacheInitialized:Boolean = false;
    model_internal var _client_nameValidationFailureMessages:Array;
    
    model_internal var _off_phoneIsValid:Boolean;
    model_internal var _off_phoneValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _off_phoneIsValidCacheInitialized:Boolean = false;
    model_internal var _off_phoneValidationFailureMessages:Array;
    
    model_internal var _cre_datetimeIsValid:Boolean;
    model_internal var _cre_datetimeValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _cre_datetimeIsValidCacheInitialized:Boolean = false;
    model_internal var _cre_datetimeValidationFailureMessages:Array;
    
    model_internal var _del_phoneIsValid:Boolean;
    model_internal var _del_phoneValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _del_phoneIsValidCacheInitialized:Boolean = false;
    model_internal var _del_phoneValidationFailureMessages:Array;
    
    model_internal var _client_pricecategoryIsValid:Boolean;
    model_internal var _client_pricecategoryValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_pricecategoryIsValidCacheInitialized:Boolean = false;
    model_internal var _client_pricecategoryValidationFailureMessages:Array;
    
    model_internal var _client_urlIsValid:Boolean;
    model_internal var _client_urlValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_urlIsValidCacheInitialized:Boolean = false;
    model_internal var _client_urlValidationFailureMessages:Array;
    
    model_internal var _client_faxIsValid:Boolean;
    model_internal var _client_faxValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_faxIsValidCacheInitialized:Boolean = false;
    model_internal var _client_faxValidationFailureMessages:Array;
    
    model_internal var _cust_typeIsValid:Boolean;
    model_internal var _cust_typeValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _cust_typeIsValidCacheInitialized:Boolean = false;
    model_internal var _cust_typeValidationFailureMessages:Array;
    
    model_internal var _client_del_addrIsValid:Boolean;
    model_internal var _client_del_addrValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_del_addrIsValidCacheInitialized:Boolean = false;
    model_internal var _client_del_addrValidationFailureMessages:Array;
    
    model_internal var _client_contact_emailIsValid:Boolean;
    model_internal var _client_contact_emailValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_contact_emailIsValidCacheInitialized:Boolean = false;
    model_internal var _client_contact_emailValidationFailureMessages:Array;
    
    model_internal var _client_emailIsValid:Boolean;
    model_internal var _client_emailValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_emailIsValidCacheInitialized:Boolean = false;
    model_internal var _client_emailValidationFailureMessages:Array;

    model_internal var _instance:_Super_VoClientMaster;
    model_internal static var _nullStyle:com.adobe.fiber.styles.Style = new com.adobe.fiber.styles.Style();

    public function _VoClientMasterEntityMetadata(value : _Super_VoClientMaster)
    {
        // initialize property maps
        if (model_internal::dependentsOnMap == null)
        {
            // depenents map
            model_internal::dependentsOnMap = new Object();
            model_internal::dependentsOnMap["client_remarks"] = new Array();
            model_internal::dependentsOnMap["client_contact_person"] = new Array();
            model_internal::dependentsOnMap["serialnumber"] = new Array();
            model_internal::dependentsOnMap["country_name"] = new Array();
            model_internal::dependentsOnMap["country_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["client_off_addr"] = new Array();
            model_internal::dependentsOnMap["change_client_id"] = new Array();
            model_internal::dependentsOnMap["client_contact_phone"] = new Array();
            model_internal::dependentsOnMap["client_regno2"] = new Array();
            model_internal::dependentsOnMap["client_regno1"] = new Array();
            model_internal::dependentsOnMap["activestatus"] = new Array();
            model_internal::dependentsOnMap["client_id"] = new Array();
            model_internal::dependentsOnMap["client_name"] = new Array();
            model_internal::dependentsOnMap["off_phone"] = new Array();
            model_internal::dependentsOnMap["cre_datetime"] = new Array();
            model_internal::dependentsOnMap["del_phone"] = new Array();
            model_internal::dependentsOnMap["client_pricecategory"] = new Array();
            model_internal::dependentsOnMap["client_url"] = new Array();
            model_internal::dependentsOnMap["cre_userid"] = new Array();
            model_internal::dependentsOnMap["client_fax"] = new Array();
            model_internal::dependentsOnMap["cust_type"] = new Array();
            model_internal::dependentsOnMap["client_del_addr"] = new Array();
            model_internal::dependentsOnMap["client_contact_email"] = new Array();
            model_internal::dependentsOnMap["state_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["client_email"] = new Array();

            // collection base map
            model_internal::collectionBaseMap = new Object()
        }

        model_internal::_instance = value;
        model_internal::_client_remarksValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_remarks);
        model_internal::_client_remarksValidator.required = true;
        model_internal::_client_remarksValidator.requiredFieldError = "client_remarks is required";
        //model_internal::_client_remarksValidator.source = model_internal::_instance;
        //model_internal::_client_remarksValidator.property = "client_remarks";
        model_internal::_client_contact_personValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_contact_person);
        model_internal::_client_contact_personValidator.required = true;
        model_internal::_client_contact_personValidator.requiredFieldError = "client_contact_person is required";
        //model_internal::_client_contact_personValidator.source = model_internal::_instance;
        //model_internal::_client_contact_personValidator.property = "client_contact_person";
        model_internal::_country_nameValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForCountry_name);
        model_internal::_country_nameValidator.required = true;
        model_internal::_country_nameValidator.requiredFieldError = "country_name is required";
        //model_internal::_country_nameValidator.source = model_internal::_instance;
        //model_internal::_country_nameValidator.property = "country_name";
        model_internal::_client_off_addrValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_off_addr);
        model_internal::_client_off_addrValidator.required = true;
        model_internal::_client_off_addrValidator.requiredFieldError = "client_off_addr is required";
        //model_internal::_client_off_addrValidator.source = model_internal::_instance;
        //model_internal::_client_off_addrValidator.property = "client_off_addr";
        model_internal::_client_contact_phoneValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_contact_phone);
        model_internal::_client_contact_phoneValidator.required = true;
        model_internal::_client_contact_phoneValidator.requiredFieldError = "client_contact_phone is required";
        //model_internal::_client_contact_phoneValidator.source = model_internal::_instance;
        //model_internal::_client_contact_phoneValidator.property = "client_contact_phone";
        model_internal::_client_regno2Validator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_regno2);
        model_internal::_client_regno2Validator.required = true;
        model_internal::_client_regno2Validator.requiredFieldError = "client_regno2 is required";
        //model_internal::_client_regno2Validator.source = model_internal::_instance;
        //model_internal::_client_regno2Validator.property = "client_regno2";
        model_internal::_client_regno1Validator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_regno1);
        model_internal::_client_regno1Validator.required = true;
        model_internal::_client_regno1Validator.requiredFieldError = "client_regno1 is required";
        //model_internal::_client_regno1Validator.source = model_internal::_instance;
        //model_internal::_client_regno1Validator.property = "client_regno1";
        model_internal::_client_idValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_id);
        model_internal::_client_idValidator.required = true;
        model_internal::_client_idValidator.requiredFieldError = "client_id is required";
        //model_internal::_client_idValidator.source = model_internal::_instance;
        //model_internal::_client_idValidator.property = "client_id";
        model_internal::_client_nameValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_name);
        model_internal::_client_nameValidator.required = true;
        model_internal::_client_nameValidator.requiredFieldError = "client_name is required";
        //model_internal::_client_nameValidator.source = model_internal::_instance;
        //model_internal::_client_nameValidator.property = "client_name";
        model_internal::_off_phoneValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForOff_phone);
        model_internal::_off_phoneValidator.required = true;
        model_internal::_off_phoneValidator.requiredFieldError = "off_phone is required";
        //model_internal::_off_phoneValidator.source = model_internal::_instance;
        //model_internal::_off_phoneValidator.property = "off_phone";
        model_internal::_cre_datetimeValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForCre_datetime);
        model_internal::_cre_datetimeValidator.required = true;
        model_internal::_cre_datetimeValidator.requiredFieldError = "cre_datetime is required";
        //model_internal::_cre_datetimeValidator.source = model_internal::_instance;
        //model_internal::_cre_datetimeValidator.property = "cre_datetime";
        model_internal::_del_phoneValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForDel_phone);
        model_internal::_del_phoneValidator.required = true;
        model_internal::_del_phoneValidator.requiredFieldError = "del_phone is required";
        //model_internal::_del_phoneValidator.source = model_internal::_instance;
        //model_internal::_del_phoneValidator.property = "del_phone";
        model_internal::_client_pricecategoryValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_pricecategory);
        model_internal::_client_pricecategoryValidator.required = true;
        model_internal::_client_pricecategoryValidator.requiredFieldError = "client_pricecategory is required";
        //model_internal::_client_pricecategoryValidator.source = model_internal::_instance;
        //model_internal::_client_pricecategoryValidator.property = "client_pricecategory";
        model_internal::_client_urlValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_url);
        model_internal::_client_urlValidator.required = true;
        model_internal::_client_urlValidator.requiredFieldError = "client_url is required";
        //model_internal::_client_urlValidator.source = model_internal::_instance;
        //model_internal::_client_urlValidator.property = "client_url";
        model_internal::_client_faxValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_fax);
        model_internal::_client_faxValidator.required = true;
        model_internal::_client_faxValidator.requiredFieldError = "client_fax is required";
        //model_internal::_client_faxValidator.source = model_internal::_instance;
        //model_internal::_client_faxValidator.property = "client_fax";
        model_internal::_cust_typeValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForCust_type);
        model_internal::_cust_typeValidator.required = true;
        model_internal::_cust_typeValidator.requiredFieldError = "cust_type is required";
        //model_internal::_cust_typeValidator.source = model_internal::_instance;
        //model_internal::_cust_typeValidator.property = "cust_type";
        model_internal::_client_del_addrValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_del_addr);
        model_internal::_client_del_addrValidator.required = true;
        model_internal::_client_del_addrValidator.requiredFieldError = "client_del_addr is required";
        //model_internal::_client_del_addrValidator.source = model_internal::_instance;
        //model_internal::_client_del_addrValidator.property = "client_del_addr";
        model_internal::_client_contact_emailValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_contact_email);
        model_internal::_client_contact_emailValidator.required = true;
        model_internal::_client_contact_emailValidator.requiredFieldError = "client_contact_email is required";
        //model_internal::_client_contact_emailValidator.source = model_internal::_instance;
        //model_internal::_client_contact_emailValidator.property = "client_contact_email";
        model_internal::_client_emailValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_email);
        model_internal::_client_emailValidator.required = true;
        model_internal::_client_emailValidator.requiredFieldError = "client_email is required";
        //model_internal::_client_emailValidator.source = model_internal::_instance;
        //model_internal::_client_emailValidator.property = "client_email";
    }

    override public function getEntityName():String
    {
        return model_internal::entityName;
    }

    override public function getProperties():Array
    {
        return model_internal::allProperties;
    }

    override public function getAssociationProperties():Array
    {
        return model_internal::allAssociationProperties;
    }

    override public function getRequiredProperties():Array
    {
         return model_internal::allRequiredProperties;   
    }

    override public function getDataProperties():Array
    {
        return model_internal::dataProperties;
    }

    override public function getGuardedProperties():Array
    {
        return model_internal::guardedProperties;
    }

    override public function getUnguardedProperties():Array
    {
        return model_internal::allAlwaysAvailableProperties;
    }

    override public function getDependants(propertyName:String):Array
    {
       if (model_internal::dataProperties.indexOf(propertyName) == -1)
            throw new Error(propertyName + " is not a data property of entity VoClientMaster");  
            
       return model_internal::dependentsOnMap[propertyName] as Array;  
    }

    override public function getDependedOnServices():Array
    {
        return model_internal::dependedOnServices;
    }

    override public function getCollectionProperties():Array
    {
        return model_internal::collectionProperties;
    }

    override public function getCollectionBase(propertyName:String):String
    {
        if (model_internal::collectionProperties.indexOf(propertyName) == -1)
            throw new Error(propertyName + " is not a collection property of entity VoClientMaster");  

        return model_internal::collectionBaseMap[propertyName];
    }

    override public function getAvailableProperties():com.adobe.fiber.valueobjects.IPropertyIterator
    {
        return new com.adobe.fiber.valueobjects.AvailablePropertyIterator(this);
    }

    override public function getValue(propertyName:String):*
    {
        if (model_internal::allProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " does not exist for entity VoClientMaster");
        }

        return model_internal::_instance[propertyName];
    }

    override public function setValue(propertyName:String, value:*):void
    {
        if (model_internal::dataProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " is not a data property of entity VoClientMaster");
        }

        model_internal::_instance[propertyName] = value;
    }

    override public function getMappedByProperty(associationProperty:String):String
    {
        switch(associationProperty)
        {
            default:
            {
                return null;
            }
        }
    }

    override public function getPropertyLength(propertyName:String):int
    {
        switch(propertyName)
        {
            default:
            {
                return 0;
            }
        }
    }

    override public function isAvailable(propertyName:String):Boolean
    {
        if (model_internal::allProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " does not exist for entity VoClientMaster");
        }

        if (model_internal::allAlwaysAvailableProperties.indexOf(propertyName) != -1)
        {
            return true;
        }

        switch(propertyName)
        {
            default:
            {
                return true;
            }
        }
    }

    override public function getIdentityMap():Object
    {
        var returnMap:Object = new Object();

        return returnMap;
    }

    [Bindable(event="propertyChange")]
    override public function get invalidConstraints():Array
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_invalidConstraints;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_invalidConstraints;        
        }
    }

    [Bindable(event="propertyChange")]
    override public function get validationFailureMessages():Array
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_validationFailureMessages;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_validationFailureMessages;
        }
    }

    override public function getDependantInvalidConstraints(propertyName:String):Array
    {
        var dependants:Array = getDependants(propertyName);
        if (dependants.length == 0)
        {
            return emptyArray;
        }

        var currentlyInvalid:Array = invalidConstraints;
        if (currentlyInvalid.length == 0)
        {
            return emptyArray;
        }

        var filterFunc:Function = function(element:*, index:int, arr:Array):Boolean
        {
            return dependants.indexOf(element) > -1;
        }

        return currentlyInvalid.filter(filterFunc);
    }

    /**
     * isValid
     */
    [Bindable(event="propertyChange")] 
    public function get isValid() : Boolean
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_isValid;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_isValid;
        }
    }

    [Bindable(event="propertyChange")]
    public function get isClient_remarksAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_contact_personAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSerialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCountry_nameAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCountry_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_off_addrAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isChange_client_idAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_contact_phoneAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_regno2Available():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_regno1Available():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isActivestatusAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_idAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_nameAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isOff_phoneAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCre_datetimeAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isDel_phoneAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_pricecategoryAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_urlAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCre_useridAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_faxAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCust_typeAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_del_addrAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_contact_emailAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isState_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_emailAvailable():Boolean
    {
        return true;
    }


    /**
     * derived property recalculation
     */
    public function invalidateDependentOnClient_remarks():void
    {
        if (model_internal::_client_remarksIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_remarks = null;
            model_internal::calculateClient_remarksIsValid();
        }
    }
    public function invalidateDependentOnClient_contact_person():void
    {
        if (model_internal::_client_contact_personIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_contact_person = null;
            model_internal::calculateClient_contact_personIsValid();
        }
    }
    public function invalidateDependentOnCountry_name():void
    {
        if (model_internal::_country_nameIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfCountry_name = null;
            model_internal::calculateCountry_nameIsValid();
        }
    }
    public function invalidateDependentOnClient_off_addr():void
    {
        if (model_internal::_client_off_addrIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_off_addr = null;
            model_internal::calculateClient_off_addrIsValid();
        }
    }
    public function invalidateDependentOnClient_contact_phone():void
    {
        if (model_internal::_client_contact_phoneIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_contact_phone = null;
            model_internal::calculateClient_contact_phoneIsValid();
        }
    }
    public function invalidateDependentOnClient_regno2():void
    {
        if (model_internal::_client_regno2IsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_regno2 = null;
            model_internal::calculateClient_regno2IsValid();
        }
    }
    public function invalidateDependentOnClient_regno1():void
    {
        if (model_internal::_client_regno1IsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_regno1 = null;
            model_internal::calculateClient_regno1IsValid();
        }
    }
    public function invalidateDependentOnClient_id():void
    {
        if (model_internal::_client_idIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_id = null;
            model_internal::calculateClient_idIsValid();
        }
    }
    public function invalidateDependentOnClient_name():void
    {
        if (model_internal::_client_nameIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_name = null;
            model_internal::calculateClient_nameIsValid();
        }
    }
    public function invalidateDependentOnOff_phone():void
    {
        if (model_internal::_off_phoneIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfOff_phone = null;
            model_internal::calculateOff_phoneIsValid();
        }
    }
    public function invalidateDependentOnCre_datetime():void
    {
        if (model_internal::_cre_datetimeIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfCre_datetime = null;
            model_internal::calculateCre_datetimeIsValid();
        }
    }
    public function invalidateDependentOnDel_phone():void
    {
        if (model_internal::_del_phoneIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfDel_phone = null;
            model_internal::calculateDel_phoneIsValid();
        }
    }
    public function invalidateDependentOnClient_pricecategory():void
    {
        if (model_internal::_client_pricecategoryIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_pricecategory = null;
            model_internal::calculateClient_pricecategoryIsValid();
        }
    }
    public function invalidateDependentOnClient_url():void
    {
        if (model_internal::_client_urlIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_url = null;
            model_internal::calculateClient_urlIsValid();
        }
    }
    public function invalidateDependentOnClient_fax():void
    {
        if (model_internal::_client_faxIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_fax = null;
            model_internal::calculateClient_faxIsValid();
        }
    }
    public function invalidateDependentOnCust_type():void
    {
        if (model_internal::_cust_typeIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfCust_type = null;
            model_internal::calculateCust_typeIsValid();
        }
    }
    public function invalidateDependentOnClient_del_addr():void
    {
        if (model_internal::_client_del_addrIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_del_addr = null;
            model_internal::calculateClient_del_addrIsValid();
        }
    }
    public function invalidateDependentOnClient_contact_email():void
    {
        if (model_internal::_client_contact_emailIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_contact_email = null;
            model_internal::calculateClient_contact_emailIsValid();
        }
    }
    public function invalidateDependentOnClient_email():void
    {
        if (model_internal::_client_emailIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_email = null;
            model_internal::calculateClient_emailIsValid();
        }
    }

    model_internal function fireChangeEvent(propertyName:String, oldValue:Object, newValue:Object):void
    {
        this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, propertyName, oldValue, newValue));
    }

    [Bindable(event="propertyChange")]   
    public function get client_remarksStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_remarksValidator() : StyleValidator
    {
        return model_internal::_client_remarksValidator;
    }

    model_internal function set _client_remarksIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_remarksIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_remarksIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_remarksIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_remarksIsValid():Boolean
    {
        if (!model_internal::_client_remarksIsValidCacheInitialized)
        {
            model_internal::calculateClient_remarksIsValid();
        }

        return model_internal::_client_remarksIsValid;
    }

    model_internal function calculateClient_remarksIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_remarksValidator.validate(model_internal::_instance.client_remarks)
        model_internal::_client_remarksIsValid_der = (valRes.results == null);
        model_internal::_client_remarksIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_remarksValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_remarksValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_remarksValidationFailureMessages():Array
    {
        if (model_internal::_client_remarksValidationFailureMessages == null)
            model_internal::calculateClient_remarksIsValid();

        return _client_remarksValidationFailureMessages;
    }

    model_internal function set client_remarksValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_remarksValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_remarksValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_remarksValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get client_contact_personStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_contact_personValidator() : StyleValidator
    {
        return model_internal::_client_contact_personValidator;
    }

    model_internal function set _client_contact_personIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_contact_personIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_contact_personIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_contact_personIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_contact_personIsValid():Boolean
    {
        if (!model_internal::_client_contact_personIsValidCacheInitialized)
        {
            model_internal::calculateClient_contact_personIsValid();
        }

        return model_internal::_client_contact_personIsValid;
    }

    model_internal function calculateClient_contact_personIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_contact_personValidator.validate(model_internal::_instance.client_contact_person)
        model_internal::_client_contact_personIsValid_der = (valRes.results == null);
        model_internal::_client_contact_personIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_contact_personValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_contact_personValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_contact_personValidationFailureMessages():Array
    {
        if (model_internal::_client_contact_personValidationFailureMessages == null)
            model_internal::calculateClient_contact_personIsValid();

        return _client_contact_personValidationFailureMessages;
    }

    model_internal function set client_contact_personValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_contact_personValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_contact_personValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_contact_personValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get serialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get country_nameStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get country_nameValidator() : StyleValidator
    {
        return model_internal::_country_nameValidator;
    }

    model_internal function set _country_nameIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_country_nameIsValid;         
        if (oldValue !== value)
        {
            model_internal::_country_nameIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "country_nameIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get country_nameIsValid():Boolean
    {
        if (!model_internal::_country_nameIsValidCacheInitialized)
        {
            model_internal::calculateCountry_nameIsValid();
        }

        return model_internal::_country_nameIsValid;
    }

    model_internal function calculateCountry_nameIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_country_nameValidator.validate(model_internal::_instance.country_name)
        model_internal::_country_nameIsValid_der = (valRes.results == null);
        model_internal::_country_nameIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::country_nameValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::country_nameValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get country_nameValidationFailureMessages():Array
    {
        if (model_internal::_country_nameValidationFailureMessages == null)
            model_internal::calculateCountry_nameIsValid();

        return _country_nameValidationFailureMessages;
    }

    model_internal function set country_nameValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_country_nameValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_country_nameValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "country_nameValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get country_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get client_off_addrStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_off_addrValidator() : StyleValidator
    {
        return model_internal::_client_off_addrValidator;
    }

    model_internal function set _client_off_addrIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_off_addrIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_off_addrIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_off_addrIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_off_addrIsValid():Boolean
    {
        if (!model_internal::_client_off_addrIsValidCacheInitialized)
        {
            model_internal::calculateClient_off_addrIsValid();
        }

        return model_internal::_client_off_addrIsValid;
    }

    model_internal function calculateClient_off_addrIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_off_addrValidator.validate(model_internal::_instance.client_off_addr)
        model_internal::_client_off_addrIsValid_der = (valRes.results == null);
        model_internal::_client_off_addrIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_off_addrValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_off_addrValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_off_addrValidationFailureMessages():Array
    {
        if (model_internal::_client_off_addrValidationFailureMessages == null)
            model_internal::calculateClient_off_addrIsValid();

        return _client_off_addrValidationFailureMessages;
    }

    model_internal function set client_off_addrValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_off_addrValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_off_addrValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_off_addrValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get change_client_idStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get client_contact_phoneStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_contact_phoneValidator() : StyleValidator
    {
        return model_internal::_client_contact_phoneValidator;
    }

    model_internal function set _client_contact_phoneIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_contact_phoneIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_contact_phoneIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_contact_phoneIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_contact_phoneIsValid():Boolean
    {
        if (!model_internal::_client_contact_phoneIsValidCacheInitialized)
        {
            model_internal::calculateClient_contact_phoneIsValid();
        }

        return model_internal::_client_contact_phoneIsValid;
    }

    model_internal function calculateClient_contact_phoneIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_contact_phoneValidator.validate(model_internal::_instance.client_contact_phone)
        model_internal::_client_contact_phoneIsValid_der = (valRes.results == null);
        model_internal::_client_contact_phoneIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_contact_phoneValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_contact_phoneValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_contact_phoneValidationFailureMessages():Array
    {
        if (model_internal::_client_contact_phoneValidationFailureMessages == null)
            model_internal::calculateClient_contact_phoneIsValid();

        return _client_contact_phoneValidationFailureMessages;
    }

    model_internal function set client_contact_phoneValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_contact_phoneValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_contact_phoneValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_contact_phoneValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get client_regno2Style():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_regno2Validator() : StyleValidator
    {
        return model_internal::_client_regno2Validator;
    }

    model_internal function set _client_regno2IsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_regno2IsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_regno2IsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_regno2IsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_regno2IsValid():Boolean
    {
        if (!model_internal::_client_regno2IsValidCacheInitialized)
        {
            model_internal::calculateClient_regno2IsValid();
        }

        return model_internal::_client_regno2IsValid;
    }

    model_internal function calculateClient_regno2IsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_regno2Validator.validate(model_internal::_instance.client_regno2)
        model_internal::_client_regno2IsValid_der = (valRes.results == null);
        model_internal::_client_regno2IsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_regno2ValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_regno2ValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_regno2ValidationFailureMessages():Array
    {
        if (model_internal::_client_regno2ValidationFailureMessages == null)
            model_internal::calculateClient_regno2IsValid();

        return _client_regno2ValidationFailureMessages;
    }

    model_internal function set client_regno2ValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_regno2ValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_regno2ValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_regno2ValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get client_regno1Style():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_regno1Validator() : StyleValidator
    {
        return model_internal::_client_regno1Validator;
    }

    model_internal function set _client_regno1IsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_regno1IsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_regno1IsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_regno1IsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_regno1IsValid():Boolean
    {
        if (!model_internal::_client_regno1IsValidCacheInitialized)
        {
            model_internal::calculateClient_regno1IsValid();
        }

        return model_internal::_client_regno1IsValid;
    }

    model_internal function calculateClient_regno1IsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_regno1Validator.validate(model_internal::_instance.client_regno1)
        model_internal::_client_regno1IsValid_der = (valRes.results == null);
        model_internal::_client_regno1IsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_regno1ValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_regno1ValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_regno1ValidationFailureMessages():Array
    {
        if (model_internal::_client_regno1ValidationFailureMessages == null)
            model_internal::calculateClient_regno1IsValid();

        return _client_regno1ValidationFailureMessages;
    }

    model_internal function set client_regno1ValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_regno1ValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_regno1ValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_regno1ValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get activestatusStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get client_idStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_idValidator() : StyleValidator
    {
        return model_internal::_client_idValidator;
    }

    model_internal function set _client_idIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_idIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_idIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_idIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_idIsValid():Boolean
    {
        if (!model_internal::_client_idIsValidCacheInitialized)
        {
            model_internal::calculateClient_idIsValid();
        }

        return model_internal::_client_idIsValid;
    }

    model_internal function calculateClient_idIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_idValidator.validate(model_internal::_instance.client_id)
        model_internal::_client_idIsValid_der = (valRes.results == null);
        model_internal::_client_idIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_idValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_idValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_idValidationFailureMessages():Array
    {
        if (model_internal::_client_idValidationFailureMessages == null)
            model_internal::calculateClient_idIsValid();

        return _client_idValidationFailureMessages;
    }

    model_internal function set client_idValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_idValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_idValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_idValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get client_nameStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_nameValidator() : StyleValidator
    {
        return model_internal::_client_nameValidator;
    }

    model_internal function set _client_nameIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_nameIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_nameIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_nameIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_nameIsValid():Boolean
    {
        if (!model_internal::_client_nameIsValidCacheInitialized)
        {
            model_internal::calculateClient_nameIsValid();
        }

        return model_internal::_client_nameIsValid;
    }

    model_internal function calculateClient_nameIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_nameValidator.validate(model_internal::_instance.client_name)
        model_internal::_client_nameIsValid_der = (valRes.results == null);
        model_internal::_client_nameIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_nameValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_nameValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_nameValidationFailureMessages():Array
    {
        if (model_internal::_client_nameValidationFailureMessages == null)
            model_internal::calculateClient_nameIsValid();

        return _client_nameValidationFailureMessages;
    }

    model_internal function set client_nameValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_nameValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_nameValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_nameValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get off_phoneStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get off_phoneValidator() : StyleValidator
    {
        return model_internal::_off_phoneValidator;
    }

    model_internal function set _off_phoneIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_off_phoneIsValid;         
        if (oldValue !== value)
        {
            model_internal::_off_phoneIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "off_phoneIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get off_phoneIsValid():Boolean
    {
        if (!model_internal::_off_phoneIsValidCacheInitialized)
        {
            model_internal::calculateOff_phoneIsValid();
        }

        return model_internal::_off_phoneIsValid;
    }

    model_internal function calculateOff_phoneIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_off_phoneValidator.validate(model_internal::_instance.off_phone)
        model_internal::_off_phoneIsValid_der = (valRes.results == null);
        model_internal::_off_phoneIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::off_phoneValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::off_phoneValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get off_phoneValidationFailureMessages():Array
    {
        if (model_internal::_off_phoneValidationFailureMessages == null)
            model_internal::calculateOff_phoneIsValid();

        return _off_phoneValidationFailureMessages;
    }

    model_internal function set off_phoneValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_off_phoneValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_off_phoneValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "off_phoneValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get cre_datetimeStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get cre_datetimeValidator() : StyleValidator
    {
        return model_internal::_cre_datetimeValidator;
    }

    model_internal function set _cre_datetimeIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_cre_datetimeIsValid;         
        if (oldValue !== value)
        {
            model_internal::_cre_datetimeIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_datetimeIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get cre_datetimeIsValid():Boolean
    {
        if (!model_internal::_cre_datetimeIsValidCacheInitialized)
        {
            model_internal::calculateCre_datetimeIsValid();
        }

        return model_internal::_cre_datetimeIsValid;
    }

    model_internal function calculateCre_datetimeIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_cre_datetimeValidator.validate(model_internal::_instance.cre_datetime)
        model_internal::_cre_datetimeIsValid_der = (valRes.results == null);
        model_internal::_cre_datetimeIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::cre_datetimeValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::cre_datetimeValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get cre_datetimeValidationFailureMessages():Array
    {
        if (model_internal::_cre_datetimeValidationFailureMessages == null)
            model_internal::calculateCre_datetimeIsValid();

        return _cre_datetimeValidationFailureMessages;
    }

    model_internal function set cre_datetimeValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_cre_datetimeValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_cre_datetimeValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_datetimeValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get del_phoneStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get del_phoneValidator() : StyleValidator
    {
        return model_internal::_del_phoneValidator;
    }

    model_internal function set _del_phoneIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_del_phoneIsValid;         
        if (oldValue !== value)
        {
            model_internal::_del_phoneIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "del_phoneIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get del_phoneIsValid():Boolean
    {
        if (!model_internal::_del_phoneIsValidCacheInitialized)
        {
            model_internal::calculateDel_phoneIsValid();
        }

        return model_internal::_del_phoneIsValid;
    }

    model_internal function calculateDel_phoneIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_del_phoneValidator.validate(model_internal::_instance.del_phone)
        model_internal::_del_phoneIsValid_der = (valRes.results == null);
        model_internal::_del_phoneIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::del_phoneValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::del_phoneValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get del_phoneValidationFailureMessages():Array
    {
        if (model_internal::_del_phoneValidationFailureMessages == null)
            model_internal::calculateDel_phoneIsValid();

        return _del_phoneValidationFailureMessages;
    }

    model_internal function set del_phoneValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_del_phoneValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_del_phoneValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "del_phoneValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get client_pricecategoryStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_pricecategoryValidator() : StyleValidator
    {
        return model_internal::_client_pricecategoryValidator;
    }

    model_internal function set _client_pricecategoryIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_pricecategoryIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_pricecategoryIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_pricecategoryIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_pricecategoryIsValid():Boolean
    {
        if (!model_internal::_client_pricecategoryIsValidCacheInitialized)
        {
            model_internal::calculateClient_pricecategoryIsValid();
        }

        return model_internal::_client_pricecategoryIsValid;
    }

    model_internal function calculateClient_pricecategoryIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_pricecategoryValidator.validate(model_internal::_instance.client_pricecategory)
        model_internal::_client_pricecategoryIsValid_der = (valRes.results == null);
        model_internal::_client_pricecategoryIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_pricecategoryValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_pricecategoryValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_pricecategoryValidationFailureMessages():Array
    {
        if (model_internal::_client_pricecategoryValidationFailureMessages == null)
            model_internal::calculateClient_pricecategoryIsValid();

        return _client_pricecategoryValidationFailureMessages;
    }

    model_internal function set client_pricecategoryValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_pricecategoryValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_pricecategoryValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_pricecategoryValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get client_urlStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_urlValidator() : StyleValidator
    {
        return model_internal::_client_urlValidator;
    }

    model_internal function set _client_urlIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_urlIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_urlIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_urlIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_urlIsValid():Boolean
    {
        if (!model_internal::_client_urlIsValidCacheInitialized)
        {
            model_internal::calculateClient_urlIsValid();
        }

        return model_internal::_client_urlIsValid;
    }

    model_internal function calculateClient_urlIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_urlValidator.validate(model_internal::_instance.client_url)
        model_internal::_client_urlIsValid_der = (valRes.results == null);
        model_internal::_client_urlIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_urlValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_urlValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_urlValidationFailureMessages():Array
    {
        if (model_internal::_client_urlValidationFailureMessages == null)
            model_internal::calculateClient_urlIsValid();

        return _client_urlValidationFailureMessages;
    }

    model_internal function set client_urlValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_urlValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_urlValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_urlValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get cre_useridStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get client_faxStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_faxValidator() : StyleValidator
    {
        return model_internal::_client_faxValidator;
    }

    model_internal function set _client_faxIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_faxIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_faxIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_faxIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_faxIsValid():Boolean
    {
        if (!model_internal::_client_faxIsValidCacheInitialized)
        {
            model_internal::calculateClient_faxIsValid();
        }

        return model_internal::_client_faxIsValid;
    }

    model_internal function calculateClient_faxIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_faxValidator.validate(model_internal::_instance.client_fax)
        model_internal::_client_faxIsValid_der = (valRes.results == null);
        model_internal::_client_faxIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_faxValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_faxValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_faxValidationFailureMessages():Array
    {
        if (model_internal::_client_faxValidationFailureMessages == null)
            model_internal::calculateClient_faxIsValid();

        return _client_faxValidationFailureMessages;
    }

    model_internal function set client_faxValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_faxValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_faxValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_faxValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get cust_typeStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get cust_typeValidator() : StyleValidator
    {
        return model_internal::_cust_typeValidator;
    }

    model_internal function set _cust_typeIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_cust_typeIsValid;         
        if (oldValue !== value)
        {
            model_internal::_cust_typeIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cust_typeIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get cust_typeIsValid():Boolean
    {
        if (!model_internal::_cust_typeIsValidCacheInitialized)
        {
            model_internal::calculateCust_typeIsValid();
        }

        return model_internal::_cust_typeIsValid;
    }

    model_internal function calculateCust_typeIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_cust_typeValidator.validate(model_internal::_instance.cust_type)
        model_internal::_cust_typeIsValid_der = (valRes.results == null);
        model_internal::_cust_typeIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::cust_typeValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::cust_typeValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get cust_typeValidationFailureMessages():Array
    {
        if (model_internal::_cust_typeValidationFailureMessages == null)
            model_internal::calculateCust_typeIsValid();

        return _cust_typeValidationFailureMessages;
    }

    model_internal function set cust_typeValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_cust_typeValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_cust_typeValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cust_typeValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get client_del_addrStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_del_addrValidator() : StyleValidator
    {
        return model_internal::_client_del_addrValidator;
    }

    model_internal function set _client_del_addrIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_del_addrIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_del_addrIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_del_addrIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_del_addrIsValid():Boolean
    {
        if (!model_internal::_client_del_addrIsValidCacheInitialized)
        {
            model_internal::calculateClient_del_addrIsValid();
        }

        return model_internal::_client_del_addrIsValid;
    }

    model_internal function calculateClient_del_addrIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_del_addrValidator.validate(model_internal::_instance.client_del_addr)
        model_internal::_client_del_addrIsValid_der = (valRes.results == null);
        model_internal::_client_del_addrIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_del_addrValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_del_addrValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_del_addrValidationFailureMessages():Array
    {
        if (model_internal::_client_del_addrValidationFailureMessages == null)
            model_internal::calculateClient_del_addrIsValid();

        return _client_del_addrValidationFailureMessages;
    }

    model_internal function set client_del_addrValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_del_addrValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_del_addrValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_del_addrValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get client_contact_emailStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_contact_emailValidator() : StyleValidator
    {
        return model_internal::_client_contact_emailValidator;
    }

    model_internal function set _client_contact_emailIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_contact_emailIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_contact_emailIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_contact_emailIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_contact_emailIsValid():Boolean
    {
        if (!model_internal::_client_contact_emailIsValidCacheInitialized)
        {
            model_internal::calculateClient_contact_emailIsValid();
        }

        return model_internal::_client_contact_emailIsValid;
    }

    model_internal function calculateClient_contact_emailIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_contact_emailValidator.validate(model_internal::_instance.client_contact_email)
        model_internal::_client_contact_emailIsValid_der = (valRes.results == null);
        model_internal::_client_contact_emailIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_contact_emailValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_contact_emailValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_contact_emailValidationFailureMessages():Array
    {
        if (model_internal::_client_contact_emailValidationFailureMessages == null)
            model_internal::calculateClient_contact_emailIsValid();

        return _client_contact_emailValidationFailureMessages;
    }

    model_internal function set client_contact_emailValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_contact_emailValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_contact_emailValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_contact_emailValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get state_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get client_emailStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_emailValidator() : StyleValidator
    {
        return model_internal::_client_emailValidator;
    }

    model_internal function set _client_emailIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_emailIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_emailIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_emailIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_emailIsValid():Boolean
    {
        if (!model_internal::_client_emailIsValidCacheInitialized)
        {
            model_internal::calculateClient_emailIsValid();
        }

        return model_internal::_client_emailIsValid;
    }

    model_internal function calculateClient_emailIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_emailValidator.validate(model_internal::_instance.client_email)
        model_internal::_client_emailIsValid_der = (valRes.results == null);
        model_internal::_client_emailIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_emailValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_emailValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_emailValidationFailureMessages():Array
    {
        if (model_internal::_client_emailValidationFailureMessages == null)
            model_internal::calculateClient_emailIsValid();

        return _client_emailValidationFailureMessages;
    }

    model_internal function set client_emailValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_emailValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_emailValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_emailValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }


     /**
     * 
     * @inheritDoc 
     */ 
     override public function getStyle(propertyName:String):com.adobe.fiber.styles.IStyle
     {
         switch(propertyName)
         {
            default:
            {
                return null;
            }
         }
     }
     
     /**
     * 
     * @inheritDoc 
     *  
     */  
     override public function getPropertyValidationFailureMessages(propertyName:String):Array
     {
         switch(propertyName)
         {
            case("client_remarks"):
            {
                return client_remarksValidationFailureMessages;
            }
            case("client_contact_person"):
            {
                return client_contact_personValidationFailureMessages;
            }
            case("country_name"):
            {
                return country_nameValidationFailureMessages;
            }
            case("client_off_addr"):
            {
                return client_off_addrValidationFailureMessages;
            }
            case("client_contact_phone"):
            {
                return client_contact_phoneValidationFailureMessages;
            }
            case("client_regno2"):
            {
                return client_regno2ValidationFailureMessages;
            }
            case("client_regno1"):
            {
                return client_regno1ValidationFailureMessages;
            }
            case("client_id"):
            {
                return client_idValidationFailureMessages;
            }
            case("client_name"):
            {
                return client_nameValidationFailureMessages;
            }
            case("off_phone"):
            {
                return off_phoneValidationFailureMessages;
            }
            case("cre_datetime"):
            {
                return cre_datetimeValidationFailureMessages;
            }
            case("del_phone"):
            {
                return del_phoneValidationFailureMessages;
            }
            case("client_pricecategory"):
            {
                return client_pricecategoryValidationFailureMessages;
            }
            case("client_url"):
            {
                return client_urlValidationFailureMessages;
            }
            case("client_fax"):
            {
                return client_faxValidationFailureMessages;
            }
            case("cust_type"):
            {
                return cust_typeValidationFailureMessages;
            }
            case("client_del_addr"):
            {
                return client_del_addrValidationFailureMessages;
            }
            case("client_contact_email"):
            {
                return client_contact_emailValidationFailureMessages;
            }
            case("client_email"):
            {
                return client_emailValidationFailureMessages;
            }
            default:
            {
                return emptyArray;
            }
         }
     }

}

}
